package demo1;

class Computer{
    private String cpu;
    private String memory;
    public String screen = "屏幕";
    String brand = "华硕";
    public Computer(){

    }
    public Computer(String cpu,String memory,String screen){
        this.cpu = cpu;
        this.memory = memory;
        this.brand = brand;
    }
    public void boot(){
        System.out.println("开机~~~");
    }
    public void poweroff(){
        System.out.println("关机~~~");
    }
    public void surfinternet(){
        System.out.println("上网~~~~");
    }
}
public class Test {
    public static void main(String[] args) {
        Computer computer = new Computer();
        System.out.println(computer.brand);
        System.out.println(computer.screen);
        computer.boot();
    }
}
